package com.pt25.study.example.repository.sharding.persistence.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pt25.study.example.domain.sharding.ddo.ShardingSd;
import com.pt25.study.example.repository.sharding.converter.ShardingConverter;
import com.pt25.study.example.repository.sharding.mapper.ShardingSdMapper;
import com.pt25.study.example.repository.sharding.persistence.ShardingSdRepo;
import com.pt25.study.example.repository.sharding.po.ShardingSdPo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ShardingSdRepoImpl extends ServiceImpl<ShardingSdMapper, ShardingSdPo> implements ShardingSdRepo {

    @Override
    public ShardingSd getShardingSd(Long id) {
        return ShardingConverter.ShardingSDPO2ShardingSD(getById(id));
    }
}
